package nafos.server;

/**
 * @ClassName ExceptionInfo
 * @Description TODO
 * @Author hxy
 * @Date 2020/4/28 15:28
 */
public class ExceptionInfo {
    /**
     * response.status 错误码
     */
    private Integer status = 400;
    /**
     * body 中返回的业务具体状态
     */
    private Integer error;
    /**
     * 具体错误信息
     */
    private String message;

    public ExceptionInfo(Integer status, Integer error, String message) {
        this.status = status;
        this.error = error;
        this.message = message;
    }

    public ExceptionInfo(Integer error, String message) {
        this.error = error;
        this.message = message;
    }

    public Integer getStatus() {
        return status;
    }

    public void setStatus(Integer status) {
        this.status = status;
    }

    public Integer getError() {
        return error;
    }

    public void setError(Integer error) {
        this.error = error;
    }

    public String getMessage() {
        return message;
    }

    public void setMessage(String message) {
        this.message = message;
    }
}
